/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.etrs.formathlon.vue.jsf.utils;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import net.etrs.formathlon.persistance.formation.SessionFacade;

/**
 * Cette classe permet aux ManagedBean de scope application
 * d'accéder à des EJB liés à une session.
 * @author OPIF
 */
@ManagedBean
@RequestScoped
public class FacadeAccessorBean {
    
    @EJB
    private SessionFacade sessionFacade;

    /**
     * @return the sessionFacade
     */
    public SessionFacade getSessionFacade() {
        return sessionFacade;
    }

    /**
     * @param sessionFacade the sessionFacade to set
     */
    public void setSessionFacade(SessionFacade sessionFacade) {
        this.sessionFacade = sessionFacade;
    }

}
